package com.yidian.task;

import org.springframework.stereotype.Component;

/**
 * @author whb
 * @create 2021-09-27 10:04
 * @desciption SpringTask定时任务测试类
 */
@Component
public class SpringTaskTest {
   /* @Scheduled(cron = "0/5 * * * * ?")
    public void printTime(){
        SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(format.format(new Date()));
    }*/
}
